package com.neusoft.yuejian26.yuejian_26.network;

import com.neusoft.yuejian26.yuejian_26.Utils.Data;

import retrofit2.Call;
/**
 * Created by Administrator on 2017/10/7 0007.
 */

public class RetrofitBaseModel {
    protected RetrofitCallBuilder retrofitCallBuilder;
    public RetrofitBaseModel(){
        retrofitCallBuilder =
                RetrofitCallBuilder.getInstance()
                        .baseUrl(Data.BASE_URL);
    }
    public <T> void bindCallback(Call<T> call, RetrofitCallback<T> callback) {
        retrofitCallBuilder.bindCallback(call, callback);
    }
}
